#-------------------------------------------------
#
# Project created by QtCreator 2024-05-30T14:42:25
#
#-------------------------------------------------

QT       += core gui sql dbus

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = securitytools
#TEMPLATE = app
TEMPLATE = lib
CONFIG += plugin

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

SOURCES += \
        main.cpp \
        mainwindow.cpp \
    securitytools/securitytoolsmodel.cpp \
    securitytools/securitytoolswidget.cpp \
    securitytools/systemrebootdialog.cpp \
    securitytools/startup/startupwidget.cpp \
    securitytools/startup/autostartmodel.cpp \
    securitytools/usbstoragesecurity/usbdevicedetailsdelegate.cpp \
    securitytools/usbstoragesecurity/usbdevicedetailsdlg.cpp \
    securitytools/usbstoragesecurity/usbimportandexportjob.cpp \
    securitytools/usbstoragesecurity/usbpolicykithelper.cpp \
    securitytools/usbstoragesecurity/usbrecordsdelegate.cpp \
    securitytools/usbstoragesecurity/usbstoragesecuritymodel.cpp \
    securitytools/usbstoragesecurity/usbstoragesecuritywidget.cpp \
    securitytools/usbstoragesecurity/usbwhitelistdelegate.cpp \
    securitytools/usbstoragesecurity/usbwhitelistdlg.cpp \
    securitytools/usbconnection/usbconnectionwork.cpp \
    securitytools/usbconnection/usbconnectionwidget.cpp \
    securitytools/usbconnection/policykithelper.cpp \
    securitytools/securitylevel/configuratingsystemleveldialog.cpp \
    securitytools/securitylevel/executingdialog.cpp \
    securitytools/securitylevel/privilegeseparationdialog.cpp \
    securitytools/securitylevel/securitylevelchangedialog.cpp \
    securitytools/securitylevel/securitylevelitem.cpp \
    securitytools/securitylevel/securitylevelmodel.cpp \
    securitytools/securitylevel/securitylevelwidget.cpp \
    securitytools/securitylevel/switchaccounttipdialog.cpp \
    securitytools/securitylevel/systemlevelpolicykit.cpp \
    securitytools/securitylevel/waylandwarningdialog.cpp \
    securitytools/loginsafety/loginsafetymodel.cpp \
    securitytools/loginsafety/loginsafetywidget.cpp \
    securitytools/loginsafety/pwdlevelchangeddlg.cpp \
    securitytools/loginsafety/pwdlimitlevelitem.cpp \
    securitytools/exefilesprotection/addtrustaskdialog.cpp \
    securitytools/exefilesprotection/exefilespolicykithelper.cpp \
    securitytools/exefilesprotection/exefilesprotectiondelegate.cpp \
    securitytools/exefilesprotection/exefilesprotectioninfo.cpp \
    securitytools/exefilesprotection/exefilesprotectionitem.cpp \
    securitytools/exefilesprotection/exefilesprotectionmodel.cpp \
    securitytools/exefilesprotection/exefilesprotectionwidget.cpp \
    securitytools/exefilesprotection/modelsettingchangedialog.cpp \
#    securitytools/datausage/dateusagewidgets/appdatachart.cpp
    securitytools/usbconnection/widgets/usbinfolabel.cpp \
    securitytools/usbconnection/widgets/usbinfodialog.cpp \
    securitytools/datausage/speedwidget.cpp \
    securitytools/datausage/flowwidget.cpp \
    securitytools/datausage/datausagewidget.cpp \
    securitytools/datausage/datausagemodel.cpp \
    securitytools/datausage/appdatadetaildialog.cpp \
    securitytools/internetcontrol/netctrlmodel.cpp \
    securitytools/internetcontrol/netcontrolwidget.cpp \
    securitytools/peripheralsmanagement/peripheralsrevertdialog.cpp \
    securitytools/peripheralsmanagement/peripheralsmanageopendialog.cpp \
    securitytools/peripheralsmanagement/peripheralsmanagementwidget.cpp \
    securitytools/peripheralsmanagement/peripheralsmanagementmodel.cpp \
    securitytools/trustedprotection/trustedprotectionwidget.cpp \
    securitytools/trustedprotection/tptablemodel.cpp \
    securitytools/trustedprotection/tptabledelegate.cpp \
    securitytools/trustedprotection/tppolicyinfo.cpp \
    externinterface.cpp

HEADERS += \
        mainwindow.h \
    securitytools/securitytoolsmodel.h \
    securitytools/securitytoolswidget.h \
    securitytools/systemrebootdialog.h \
    securitytools/startup/startupwidget.h \
    securitytools/startup/autostartmodel.h \
    securitytools/usbstoragesecurity/usbstoragesecuritywidget.h \
    securitytools/usbstoragesecurity/usbdevicedetailsdelegate.h \
    securitytools/usbstoragesecurity/usbdevicedetailsdlg.h \
    securitytools/usbstoragesecurity/usbimportandexportjob.h \
    securitytools/usbstoragesecurity/usbpolicykithelper.h \
    securitytools/usbstoragesecurity/usbrecordsdatadefinition.h \
    securitytools/usbstoragesecurity/usbrecordsdelegate.h \
    securitytools/usbstoragesecurity/usbstoragesecuritymodel.h \
    securitytools/usbstoragesecurity/usbwhitelistdelegate.h \
    securitytools/usbstoragesecurity/usbwhitelistdlg.h \
    securitytools/usbconnection/usbconnectionwork.h \
    securitytools/usbconnection/usbconnectionwidget.h \
    securitytools/usbconnection/policykithelper.h \
    securitytools/securitylevel/securitylevelitem.h \
    securitytools/securitylevel/configuratingsystemleveldialog.h \
    securitytools/securitylevel/executingdialog.h \
    securitytools/securitylevel/privilegeseparationdialog.h \
    securitytools/securitylevel/securitylevelchangedefinition.h \
    securitytools/securitylevel/securitylevelchangedialog.h \
    securitytools/securitylevel/securitylevelmodel.h \
    securitytools/securitylevel/securitylevelwidget.h \
    securitytools/securitylevel/switchaccounttipdialog.h \
    securitytools/securitylevel/systemlevelpolicykit.h \
    securitytools/securitylevel/waylandwarningdialog.h \
    securitytools/loginsafety/loginsafetymodel.h \
    securitytools/loginsafety/loginsafetywidget.h \
    securitytools/loginsafety/pwdlevelchangeddlg.h \
    securitytools/loginsafety/pwdlimitlevelitem.h \
    securitytools/exefilesprotection/addtrustaskdialog.h \
    securitytools/exefilesprotection/exefilespolicykithelper.h \
    securitytools/exefilesprotection/exefilesprotectiondelegate.h \
    securitytools/exefilesprotection/exefilesprotectioninfo.h \
    securitytools/exefilesprotection/exefilesprotectionitem.h \
    securitytools/exefilesprotection/exefilesprotectionmodel.h \
    securitytools/exefilesprotection/exefilesprotectionwidget.h \
    securitytools/exefilesprotection/modelsettingchangedialog.h \
#    securitytools/datausage/dateusagewidgets/appdatachart.h
    securitytools/usbconnection/widgets/usbinfolabel.h \
    securitytools/usbconnection/widgets/usbinfodialog.h \
    securitytools/datausage/speedwidget.h \
    securitytools/datausage/flowwidget.h \
    securitytools/datausage/datausagewidget.h \
    securitytools/datausage/datausagemodel.h \
    securitytools/datausage/appdatadetaildialog.h \
    securitytools/internetcontrol/netctrlmodel.h \
    securitytools/internetcontrol/netcontrolwidget.h \
    securitytools/peripheralsmanagement/peripheralsrevertdialog.h \
    securitytools/peripheralsmanagement/peripheralsmanageopendialog.h \
    securitytools/peripheralsmanagement/peripheralsmanagementwidget.h \
    securitytools/peripheralsmanagement/peripheralsmanagementmodel.h \
    securitytools/trustedprotection/trustedprotectionwidget.h \
    securitytools/trustedprotection/trustedprotectiondefinition.h \
    securitytools/trustedprotection/tptablemodel.h \
    securitytools/trustedprotection/tptabledelegate.h \
    securitytools/trustedprotection/tppolicyinfo.h \
    externinterface.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


RESOURCES += \
    ../icons/defender_icons.qrc

PKGCONFIG += libfastjson polkit-gobject-1
CONFIG += link_pkgconfig

unix:!macx: LIBS += -lcrypt -lgio-2.0 -lglib-2.0 -L$$OUT_PWD/../gsettings-qt4/ -lgsettings-qt4

INCLUDEPATH += $$PWD/../gsettings-qt4
DEPENDPATH += $$PWD/../gsettings-qt4

unix:!macx: LIBS += -L$$OUT_PWD/../devcommon/ -ldevcommon

INCLUDEPATH += $$PWD/../devcommon
DEPENDPATH += $$PWD/../devcommon


unix:!macx: LIBS += -L$$OUT_PWD/../polkit-qt4/ -lpolkit-qt4

INCLUDEPATH += $$PWD/../polkit-qt4
DEPENDPATH += $$PWD/../polkit-qt4

include(../plugin-install.pri)

